package com.leo.quartz.common.request;

import org.springframework.data.domain.PageRequest;

import java.util.Map;

/**
 * @author liusl
 * @version 1.0
 * @date 2018/12/12 22:41
 */
public interface BaseRequestParam {
    /**
     * 获取查询规则
     * @return Map<String, Object>
     */
     Map<String, Object> buildRule();

    /**
     * 构建PageRequest
     * @return PageRequest
     */
     PageRequest buildPageRequest();

    /**
     * 构建分页与排序
     * @return pageRequest
     */
    PageRequest buildPageRequestBySort();
}
